<?php

class Zhishidi_Express_Block_Adminhtml_Rate_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs {

    public function __construct() {
        parent::__construct();
        $this->setId('expressRateTabs');
        $this->setDestElementId('edit_form'); //equal to form's id
        $this->setTitle(Mage::helper('zhishidi_express')->__('Express Rate detail'));
    }

    protected function _beforeToHtml() {
        $this->addTab('expressTypeInfo', array(
            'label' => Mage::helper('zhishidi_express')->__('Express Rate detail'),
            'title' => Mage::helper('zhishidi_express')->__('Express Rate detail'),
            'content' => $this->getLayout()->createBlock('zhishidi_express/adminhtml_rate_edit_tab_form')->toHtml(),
        ));

        return parent::_beforeToHtml();
    }

}